#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include "filesocket.h"
#include "fileserver.h"

namespace Ui {
class Widget;
}

class Widget : public QWidget
{
    Q_OBJECT

public:
    explicit Widget(QWidget *parent = 0);
    ~Widget();

    FileSocket *my_socket = new FileSocket();
    FileServer *my_server = new FileServer();

private slots:
    void on_toolButtonListenSavePath_clicked();

    void on_toolButtonListen_clicked();

signals:
    //发送开始监听的信号
    void my_listen_signal(quint16 port);

private:
    Ui::Widget *ui;
};

#endif // WIDGET_H
